package exe;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Fenjiezhiyinshi {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x=0;
        //保证x>1
        while(true){
            System. out. println("输入数字:");
            x=in.nextInt();
            if(x>1)
                break;
        }
        int k=x;
        System.out.print(x+"=");
        for(int i=2;k!=1;){
            if(k%i==0){
                k=k/i;
                if (k==1)
                System.out.print(i);
                else{
                    System.out.print(i+"*");
                }
            }else{
                i++;
            }
        }

    }
}
